<?php require_once('../../core/import.php');?>
<?php User::Permission('FUNCTION_PERMISSION_UPDATE'); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
    if(!is_numeric($ID=Functions::UrlArgs('id')))
    {
        exit('信息ID不正确');
    }
    else
    {
	  #数据处理
        $Data=array
        (
        'Name'=>Functions::UrlArgs('name'),
		'Role'=>Functions::UrlArgs('role'),
		'Identifying_Parent'=>Functions::UrlArgs('classid'),
		'URL'=>Functions::UrlArgs('url'),
		'IsList'=>Functions::UrlArgs('islist')
        );
		$Page=Functions::UrlArgs('Page');
		$Select_Class=Functions::UrlArgs('select_class');
		//exit('function.permission.list.php?page='.$Page.'&Select_Class='.$Select_Class.'');
        DB::UpdateRowByID('management_user_permission',$ID,$Data);
        Functions::JsLocation('function.permission.list.php?page='.$Page.'&Select_Class='.$Select_Class);
    }
?>